import { defHttp } from '/@/utils/http/axios';

enum Api {
    list = '/xl/customer/list',
    add = '/xl/customer/add',
    importExcel = '/sys/user/importExcel',
    exportXls = '/sys/user/exportXls',
  }

/**
 * 导出api
 * @param params
 */
export const getExportUrl = Api.exportXls;
/**
 * 导入api
 */
export const getImportUrl = Api.importExcel;
/**
 * 列表接口
 * @param params
 */
export const list = (params) => defHttp.get({ url: Api.list, params });


/**
 * 添加
 * @param params
 */
export const saveOrUpdateUser = (params) => {
    return defHttp.post({ url: Api.add, params });
  };